<?php
 @header("content-type:text/html;charset=utf-8");
 @header("Access-Control-Allow-Origin:*");
 mysql_connect("localhost:3306","root","root");
 mysql_select_db("1904");
 mysql_query("set character set utf8");
 mysql_query("set names utf8");
 $con=$_GET["con"];
 $orderType=$_GET["orderType"];
 $order=$_GET["order"];
 $sql="select count(*) from goodslist where  goods_title like '%$con%' order by $orderType $order";
 $result=mysql_query($sql);
 $count=mysql_fetch_row($result);
//  $arr=array()
//  $arr["count"]=$count
//  echo json_encode($arr)
echo $count[0];
?>